package top.rainbowecho.common.validate;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * @author rainbow
 * @since 2020/4/4 17:11
 */
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD, ElementType.PARAMETER})
@Constraint(validatedBy = MobilePhoneValidator.class)
public @interface MobilePhone {
    String message() default "与手机号码格式不匹配";

    Class<?>[] groups() default {};
    Class<? extends Payload>[] payload() default {};
}
